<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>code不保留多余空格和折行</title>
</head>
<body style="font-size:16px">

<p>code 元素不保留多余的空格和折行：</p>

<code>
  var person = {
  firstName:"Bill",
  lastName:"Gates",
  age:50,
  eyeColor:"blue"
  }
</code>

</body>
</html>